<template>
  <div>
    <el-button @click="but">导出</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { //测试数据

          "货号": "goodsNo",
          "商品条码": "skuNo2",
          "商品品牌": "brand1",
          "净容积(cm^3)": "netVolume3"
        },
        {
          "货号": "goodsNo",
          "商品条码": "skuNo",
          "商品品牌": "brand",
          "净容积(cm^3)": "netVolume"
        },
        {
          "货号": "goodsNo",
          "商品条码": "skuNo",
          "商品品牌": "brand",
          "净容积(cm^3)": "netVolume"
        }
      ]
    }
  },
  methods: {
    but() {
      window.downExl(this.list,"666")
    }
  }
}
</script>

<style>
</style>